package com.gxnu.edu.cn.ttxxt.service;

import com.gxnu.edu.cn.ttxxt.entity.Users;

import java.util.Map;

public interface UserService {
    Map<String, Object> login(String username, String password, String ip);
    int register(Users users);
    Users findById(Long userId);
    Users findByUsername(String username);
    Users updateUserInfo(Long userId, String username, String phone,
                         String email,String signature);
    boolean changePassword(Long userId, String oldPassword, String newPassword);
    boolean checkUsernameExists(String username);
    boolean checkPhoneExists(String phone);
    boolean checkEmailExists(String email);
}